package com.ydy.permission.mapper;

import com.ydy.common.model.Common;
import com.ydy.common.model.Dict;
import com.ydy.common.vo.UserRoleMenuPermissionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PermissionMapper {

    List<UserRoleMenuPermissionVo> queryParentUserRoleInfo();

    List<Common> queryCommonRoleInfo();

    List<UserRoleMenuPermissionVo> queryParentRoleMenusInfo();

    List<Common> queryCommonMenusInfo();

    List<UserRoleMenuPermissionVo> queryParentRolePermissionInfo();

    List<Common> queryCommonPermissionInfo();

    void deleteUserRole(@Param("delList") List<Map<String, String>> delList);

    void insertUserRole(@Param("addList") List<Map<String, String>> addList);

    void deleteRoleMenu(@Param("delList") List<Map<String, String>> delList);

    void insertRoleMenu(@Param("addList") List<Map<String, String>> addList);

    void deleteRolePermission(@Param("delList") List<Map<String, String>> delList);

    void insertRolePermission(@Param("addList") List<Map<String, String>> addList);

    List<Dict> queryDictList();
}
